From: Stephen Berman Date: Tue, 16 Jul 2019 09:04:56 +0000 (+0200) Subject: Prevent infinite loop on entering wdired-mode X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2270 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=288e83ae00fcf6da8064ecb5a8ffaec202c5e9ec;p=emacs.git Prevent infinite loop on entering wdired-mode * lisp/wdired.el (wdired-preprocess-symlinks): Remove unneeded use of beginning-of-line, which also triggers an infinite loop in a find-dired buffer that doesn't end with a newline (see discussion in bug#35609). --- diff --git a/lisp/wdired.el b/lisp/wdired.el index 0ccaaaca74b..44f083bb7fb 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -677,8 +677,7 @@ says how many lines to move; default is one line." 'rear-nonsticky '(read-only)) (put-text-property (match-beginning 1) (match-end 1) 'read-only nil))) - (forward-line) - (beginning-of-line))))) + (forward-line))))) (defun wdired-get-previous-link (&optional old move)